//
//  MyPurseVC.m
//  jinwang
//
//  Created by jzb on 2018/3/12.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "MyPurseVC.h"
#import "BillListVC.h"
#import "TopUpVC.h"
#import "WithdrawCashVC.h"
#import "TransferVC.h"

@interface MyPurseVC ()
@property (weak, nonatomic) IBOutlet UILabel *user_money_Label;

@property (nonatomic,strong) UIButton *billListBtn;
@end

@implementation MyPurseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"钱包";
    self.view.backgroundColor = [UIColor whiteColor];
    UIBarButtonItem *billListItem = [[UIBarButtonItem alloc]initWithCustomView:self.billListBtn];
    self.navigationItem.rightBarButtonItem = billListItem;
    
    _user_money_Label.text = k_user_money;
}
#pragma mark -懒加载
- (UIButton *)billListBtn{
    if (!_billListBtn) {
        _billListBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _billListBtn.frame = CGRectMake(0, 0, 44, 44);
//        [_billListBtn setTitle:@"保存" forState:UIControlStateNormal];
        [_billListBtn setImage:[UIImage imageNamed:@"jw_aboutMe_billList"] forState:UIControlStateNormal];
        [_billListBtn addTarget:self action:@selector(billListButOnclick:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _billListBtn;
}

- (void)billListButOnclick:(UIButton *)sender{
    
    BillListVC *VC = [BillListVC new];
    
    [self.navigationController pushViewController:VC animated:YES];

}
//充值
- (IBAction)TopUpBtnOnclick:(UIButton *)sender {
    
    TopUpVC *VC = [TopUpVC new];
    
    [self.navigationController pushViewController:VC animated:YES];
}
//提现
- (IBAction)WithdrawCashBtnOnclick:(UIButton *)sender {
    
    WithdrawCashVC *VC = [WithdrawCashVC new];
    
    [self.navigationController pushViewController:VC animated:YES];
}
////转账
//- (IBAction)TransferBtnOnclick:(UIButton *)sender {
//    
//    TransferVC *VC = [TransferVC new];
//    
//    [self.navigationController pushViewController:VC animated:YES];
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
